package com.demo.encapsulation;

public class Main {
 public static void main(String[] args) {
	
	 DivideTwoNumber obj=new DivideTwoNumber();
	 obj.setX(12);
	 obj.setY(0);

	 double result=obj.divide();
	 
	  System.out.println("Result"+result);
	  String empName="Ansul"; //string litral //single 
	  // empName=   empName+ " Kumar";  //string concatenation   //merging two ;
	  String empName2="Ansul";
	  String empName3=new String("Ansul"); //double object 
	  
	  System.out.println(empName==empName2); //same object reference. 
	  
	  System.out.println(empName2==empName3); //differnet object refrnc
	  
     empName= empName.concat(" Kumar");
	  
	  System.out.println(empName);
	  String empName1=new String("Hello World");
	  
	  //
	  
}
}
